import os


class Content(object):

    def __init__(self):
        self.index =0
        self.text = '12234567890' * 100

    def tostring(self):
        line = '{0:d} {1} \n'.format(self.index, self.text)
        self.index += 1
        return line


def run():
    for name in ['1-logstash.tmp']:
        with open('/tmp/%s'%(name),'w+') as f:
            con = Content()
            for lnum in range(100*100*100*10):
                f.write(con.tostring())


if __name__ == '__main__':
    run()
